<?php
/*
 * Created on May 14, 2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 $fckEditor = fckEditor('txtDescription', $file->description); 
?>
<?php  $this->load->view('admin/file/link_bar');?>
<form action="<?php echo $this->base_url?>admin/price/save" method="post" enctype="multipart/form-data">
	<div class="box_function">
		<table width="747" border="0" cellpadding="0" cellspacing="0" class="listproduct" id="listproduct">
	<tr>
		<td colspan="2" style="padding:5px">
<h1>
<?php echo $legend_text?>
</h1>
<?php echo $error_message?>

		</td>
	 </tr>
	 
	<tr>
		<td style="padding:5px"><?php echo lang('category_parent')?></td>
		<td>
		<?php echo $ddlCategory?>
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo $this->lang->line('vi_name')?></td>
		<td>
		<input type="text" style="width: 260px; height:20px" class="text" name="txtViName" id="txtViName" value="<?php echo $file->vi_alias?>" maxlength="100" />
		</td>
	</tr>
	<tr>
		<td style="padding:5px"><?php echo lang('en_name')?></td>
		<td>
		<input type="text" style="width: 260px; height:20px" class="text" name="txtEnName" id="txtEnName" value="<?php echo $file->en_alias?>" maxlength="100" />
		</td>
	</tr>
	
	<tr>
		<td style="padding:5px"><?php echo lang('description')?></td>
		<td>
		<?php
			
			echo $fckEditor->CreateHtml() ;
			// echo fckEditor('txtViDescription', $news->vi_description);?>
		</td>
	</tr>
	
	<tr>
		<td style="padding:5px"><?php echo 'File'?></td>
		<td>
		<input type="file" id="file" name="file" maxlength="100000"/> <i> Only allow excel file. </i>
		</td>
	</tr>
	
	<tr>
		<td style="padding:5px"><?php echo lang('active')?></td>
		<td>
		<input type="checkbox" class="checkbox" <?php echo $file->active==1? 'checked' : ''?> name="active" value="1" />
		</td>
	</tr>
	
	<tr>
		<td></td>
		<td> 
		<?php echo lang('indicates_a_required_field');?>
 		</td>
	</tr>
	
	<tr>
		<td></td>
		<td> 
		<input type="hidden" name="txtID" id="txtID" value="<?php echo $file->id_file?>"/>
<p> <input type="submit" class="submit button" name="btSave" value="<?php echo lang('save')?>" /> </p>
 		</td>
	</tr>
	
</table>
</div>

</form>
</fieldset>